﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Thaire.Investment.Domains.Master
{
    public class TaxRate
    {
        #region Properties
        // TAX_RATE_ID
        public virtual int TaxRateId { set; get; }
        // TAX_RATE_START_DATE
        public virtual DateTime? TaxRateStartDate { set; get; }
        // TAX_RATE_END_DATE
        public virtual DateTime? TaxRateEndDate { set; get; }
        // TAX_RATE_RATE_PERCENT
        public virtual int? TaxRateRatePercent { set; get; }
        // CREATE_USER_ID1
        public virtual String CreateUserId { set; get; }
        // CREATE_TS1
        public virtual DateTime CreateTs { set; get; }

        #endregion



        public override bool Equals(object obj)
        {
            if (obj == null)
                return false;
            if (obj.GetType() != typeof(TaxRate) && !(obj is TaxRate))
                return false;
            return ToString().Equals(obj.ToString());
        }

        public override int GetHashCode()
        {
            return ToString().GetHashCode();
        }

        public override string ToString()
        {
            return string.Format("{0}", TaxRateId);
        }
    }
}
